@import './__var.less';

#atd {
  width: 100%;
  height: 100%;
}

@logo-border-color: @side-bg - 8;

.atd {
  display: flex;
  &__logo {
    height: @header-height;
    line-height: @header-height;
    cursor: pointer;
    text-align: center;
    border-bottom: 1px solid @logo-border-color;
    margin-bottom: 23px;
    display: flex;
    justify-content: center;
    align-items: center;
    h3 {
      width: auto;
      color: #ffffff;
    }
    img {
      width: 24px;
      height: 24px;
      margin-right: 5px;
    }
  }
  &__side-menus {
    flex-shrink: 0;
    width: @side-width;
    height: 100%;
    background: @side-bg;
    .set-icon(@path) {
      width: 16px;
      height: 16px;
      font-size: 16px;
      vertical-align: middle;
      background: url(@path) 0 top no-repeat;
      background-size: 16px;
      margin-top: -4px;
      padding-right: 4px;
    }
    .icon-home {
      .set-icon("~@/assets/atd-home.png");
    }
    .icon-group-set {
      .set-icon("~@/assets/atd-group-set.png");
    }
    .icon-summary {
      .set-icon("~@/assets/atd-summary.png");
    }
    .icon-field {
      .set-icon("~@/assets/atd-field.png");
    }
  }
  &__container {
    flex: 1;
    flex-shrink: 0;
    overflow: hidden;
    background: #ffffff;
    .atd_pages {
      height: @container-height;
    }
  }
  &__header {
    width: 100%;
    height: @header-height;
    line-height: 1;
    background: #f5f8fb;
    color: @base-color;
    padding: 0 30px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid @border-color-base;
    &--toggle-menus {
      width: 40px;
      height: 40px;
      margin-left: -14px;
      cursor: pointer;
      box-sizing: border-box;
      transition: all .3s;
      border-radius: 4px;
      &:hover {
        background: #253544;
      }
      i.packup-icon, i.expand-icon {
        display: inline-block;
        width: 100%;
        height: 100%;
        background: url("~@/assets/atd-packup.png") center center no-repeat;
        background-size: 12px;
      }
      i.expand-icon {
        background: url("~@/assets/atd-expand.png") center center no-repeat;
        background-size: 12px;
      }
    }
    &--user {
      display: flex;
      align-items: center;
      .v-dropdown {
        cursor: pointer;
        line-height: @header-height - 10;
      }
    }
    &--avatar {
      padding: 9px 0 9px 10px;
    }
    &--username {
      color: #333333;
      font-size: 14px;
      max-width: 20em;
      .overflow-ellipsis;
    }
  }
}


